package fr.cdj.thebox.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class DownloadFilesRequestEvent extends GwtEvent<DownloadFilesRequestHandler> {

	private static Type<DownloadFilesRequestHandler> type;

	
	public DownloadFilesRequestEvent() {
	}
	
	public static Type<DownloadFilesRequestHandler> getType() {
		if(type == null) {
			type = new Type<DownloadFilesRequestHandler>();
		}
		return type;
	}
	
	@Override
	public Type<DownloadFilesRequestHandler> getAssociatedType() {
		return getType();
	}

	@Override
	protected void dispatch(DownloadFilesRequestHandler handler) {
		handler.onDownloadFilesRequest(this);
	}

}
